import request from '@/utils/request'

//关于菜单的

export function getAllMenu(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/getAll',
    method: 'get',
    params
  })
}

export function addMenu(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/addMenu',
    method: 'post',
    data: params
  })
}

export function editMenu(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/editMenu',
    method: 'post',
    data: params
  })
}

export function deleteMenu(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/deleteMenu',
    method: 'post',
    data: params
  })
}

export function stickMenu(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/stickMenu',
    method: 'post',
    data: params
  })
}

//关于按钮的

export function getButtonAll(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/getButtonList',
    method: 'post',
    data: params
  })
}

export function addButton(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/addButton',
    method: 'post',
    data: params
  })
}

export function editButton(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/editButton',
    method: 'post',
    data: params
  })
}

export function deleteButton(params) {
  return request({
    url: process.env.VUE_APP_ADMIN_API + '/categoryMenu/deleteButton',
    method: 'post',
    data: params
  })
}

